package day05;
//数组的演示
public class ArrayDemo {
    public static void main(String[] args) {
        int a[]=new int[20];
        for (int i=0;i<a.length;i++){
            a[i]=(int) (Math.random()*100);
            System.out.println(a[i]);
        }










        /*int[] a=new int[15];
        int[] a1=new int[]{1,2,2,3,4,5,67,8,};
        int[] a2={1,23,34,12,52,52,5,23,1};
        double[] a3=new double[15];
        boolean[] a4=new boolean[5];
        int b=0;
        a1[2]=105212531;
        a1[1]=1523;
        a1[2]=51;
        a1[3]=-51;
       // a1[100]=5415;运行时数组下标越界异常
        System.out.println(a1[100]);*/

        // (｡•́__ก̀｡)开学让我忧郁了很多,(`ȏ´)我明明刚放假啊！
        //北国风光 千里冰封 万里雪飘 望长城内外 惟余莽莽

    }
}
